package com.ex.interceptor;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description 拦截器知识点复习
 * @Author longdeng
 * @Date 2020/3/30 0030 23:17
 */
@Controller
@RequestMapping("/api/interceptor")
public class InterceptorController {

    @RequestMapping("/login")
    @ResponseBody
    public String login() {
        return "登录页面";
    }

    @RequestMapping("/index")
    @ResponseBody
    public String index() {
        return "登录成功，进入主页面";
    }

}
